package org.deng.learn.webflux.exception;

import lombok.Data;

/**
 * @author 邓力宾
 * @date 2020/12/21 10:41
 * @desc
 */
@Data
public class ValidException extends RuntimeException {
    /**
     * 出错字段的名称
     */
    private String fieldName;
    /**
     * 出错字段的值
     */
    private String fieldValue;

    public ValidException(String fieldName, String fieldValue) {
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
    }

    public ValidException() {
        super();
    }

    public ValidException(String message) {
        super(message);
    }

    public ValidException(String message, Throwable cause) {
        super(message, cause);
    }

    public ValidException(Throwable cause) {
        super(cause);
    }

    public ValidException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }


}
